﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Plugin.TradeSharp
{
    public partial class FormOrderInfo : Form
    {
        public FormOrderInfo()
        {
            InitializeComponent();
        }
        public Object OrderInfo
        {          
            set
            {
                this.propertyGrid1.SelectedObject = value;
            }
        }

        private void btn_OK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void btn_Cancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
    }
}
